package org.zero.onlinesubject.service;

import org.zero.onlinesubject.common.vo.MessageNotifyVo;
import org.zero.onlinesubject.common.vo.Result;
import org.zero.onlinesubject.entity.MessageNotify;
import com.baomidou.mybatisplus.extension.service.IService;
import org.zero.onlinesubject.entity.MessageType;

import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;

/**
 *
 */
public interface MessageNotifyService extends IService<MessageNotify> {

    List<MessageType> getMsgTypeList();

    List<MessageNotifyVo> getMessages() throws ExecutionException, InterruptedException, TimeoutException;

    List<MessageNotifyVo> getMessageByName(String msgName,Boolean isRead, Integer current, Integer size);

    Boolean updateMsgState(Integer msgId, String userid);

    MessageNotifyVo getNotifyInfo(Integer notifyid);
}
